import unittest
from lib.HTMLTestRunner_PY3 import HTMLTestRunner
from script.test_enployee import TestEnployee
from script.test_login import TestLogin
import app
# import time

suite = unittest.TestSuite()

# suite.addTest(unittest.makeSuite(TestLogin))
suite.addTest(TestLogin("test_login"))
suite.addTest(unittest.makeSuite(TestEnployee))

# report = app.BASE_dir + "/report/report-{}.html".format(time.strftime("%Y%m%d-%H%M%S"))
report = app.BASE_dir + "/report/report.html"

with open(report, "wb")as f:
    runner = HTMLTestRunner(f, title="测试报告")
    runner.run(suite)
